export const state = () =>{
    return{
        userInfo:{
            token:'',
            user:{}
        }
    }
}

//声明mutations(突变)函数用以更改全局变量的值
export const mutations={
    Set_userInfo(state,data){
        state.userInfo=data
    }
}